package net.htjs.juc.singleton;

/**
 * 静态内部类单例模式
 */
public class StaticInnerClassSingleton {

    private StaticInnerClassSingleton() {}
    private static class SingletonHolder {
        private static final StaticInnerClassSingleton INSTANCE = new StaticInnerClassSingleton();
    }

    public static  StaticInnerClassSingleton getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
